package com.rednote.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.Date;

@Data
public class UserProfileVO {
    private Integer userId;
    private String username;
    private String avatar;
    private String bio;
    private Integer gender;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate birthday;
    private String phone;
    private String email;
    private Integer status;
    private Date createdAt;

    private Integer followCount; // 关注数
    private Integer fanCount;    // 粉丝数
    private Integer likedCount;  // 获赞数
    private Boolean isFollowed;

}

